package com.huilian.iotbox.data.dao;

import com.huilian.iotbox.data.po.PushConfigTemplate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PushConfigTemplateCommonDao {
    PushConfigTemplate findOneByCondition(PushConfigTemplate condition);

    List<PushConfigTemplate> findAllByAOOAId(Integer appletOrOfficialAccountId);

    PushConfigTemplate findOneTemplateId(@Param("appletOrOfficialAccountId") Integer appletOrOfficialAccountId ,@Param("type") Integer type);
}
